package ss.pku.meeting.service;

import ss.pku.meeting.entities.Department;
import ss.pku.meeting.mapper.ParticipantsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ParticipantsService {

    @Autowired
    ParticipantsMapper mapper;

    public void insert(int deptId, int applyId) {
        mapper.insertPart(deptId, applyId);

    }

    public List<Integer> getParts(int appId) {
        return mapper.selectByAppId(appId);
    }
}
